<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">
	window.onload = function(){
		window.dialogArguments.location.reload(); 
	}

</script>
<body>
	<div id="main">事件对象event</div>
	<img src="hello.jpg" id="pic" width="200px" height="200px">
	<script type="text/javascript">
		var mainObj = document.getElementById('main');
		mainObj.onclick = function(event){
			console.log(event);
		}
	</script>
</body>
</html>